#ifndef __LUA_IF_H
#define __LUA_IF_H

#include "lua.h"

#include "lauxlib.h"
#include "lualib.h"
#include "time.h"

#define LUA_PROG_LEN_MAX    (32 * 1024)
#define LUA_READ_LEN_MAX    (4 * 1024)

typedef struct
{
    uint16_t Year;
    uint8_t Mon;
    uint8_t Day;
    uint8_t Hour;
    uint8_t Min;
    uint8_t Sec;
    uint8_t Week;
} RTC_T;

void lua_Init(void);
void lua_DeInit(void);
void lua_StackDump(lua_State *L);

extern lua_State *g_Lua;

#endif
